<!DOCTYPE html>

<html>
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
</head>
<body>

    <div>
        欢迎 {{ user.username }}
    </div>

    {% for u in users %}
    <div class="user">
        <span>{{ u.id }}</span>
        <span>{{ u.username }}</span>
        <span>{{ u.nickname }}</span>
        <span>
            <a href="/user/edit/{{ u.id }}">编辑</a>
            {% if u.id != user.id %}
            <a href="/user/remove/{{ u.id }}">删除</a>
            {% endif %}
        </span>
    </div>
    {% else %}
    <div class="empty">暂无数据</div>
    {% endfor%}
    
    <a href="/user/sign/out">退出登录</a>

</body>
</html>